//
//  AMBucketObjectCell.m
//  AWSMobile
//
//  Created by James on 14-11-13.
//  Copyright (c) 2014年 Siemens. All rights reserved.
//

#import "AMBucketObjectCell.h"

//Public constants
CGFloat const kExampleCellHeight = 50.0f;

@implementation AMBucketObjectCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)commonInit
{
    [super commonInit];
    
    //Setup the pieces of this cell which will be reused
    self.objectIndicatorColor = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 4, 50)];
    [self.myContentView addSubview:self.objectIndicatorColor];

    self.objectIcon = [[UIImageView alloc] initWithFrame:CGRectMake(14, 10, 30, 30)];
    [self.myContentView addSubview:self.objectIcon];
    
    self.objectName = [[UILabel alloc] initWithFrame:CGRectMake(50, 8, 155, 33)];
    [self.myContentView addSubview:self.objectName];
    
    self.detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(214, 8, 86, 33)];
    self.detailLabel.font = [UIFont systemFontOfSize:15];
    self.detailLabel.textColor = [UIColor lightGrayColor];
    self.detailLabel.textAlignment = NSTextAlignmentRight;
    [self.myContentView addSubview:self.detailLabel];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
